package com.baike.mapper;

import com.baike.entity.TbStudentDiscounts;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author libin
 * @since 2021-11-01
 */
public interface TbStudentDiscountsMapper extends BaseMapper<TbStudentDiscounts> {

    //根据条件查询  studentId discountsId  查询studentDiscounts表
    TbStudentDiscounts selectDiscounts(Integer studentId, Integer discountsId);

    //增加一张优惠券
    void insertDiscounts(Integer studentId, Integer discountsId);

    //给该优惠券数量加一
    void updateStudentDiscountsCount( Integer studentId, Integer discountsId,Integer num);
}
